using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;


namespace Pong_Xvna
{
    /// <summary>
    /// This is a game component that implements IUpdateable.
    /// </summary>
    public class AIPad : Sprite
    {
        int point = 0;

        public int Point
        {
            get { return point; }
            set { point = value; }
        }
        public AIPad(Game game, Vector2 pos, Vector2 velo)
            : base(game, pos, velo)
        {
            nTexture2D = 1;
            iTexture2D = 0;
            texture = new Texture2D[nTexture2D];
            for (int i = 0; i < nTexture2D;i++ )
                texture[i] = Game.Content.Load<Texture2D>("pad");
        }

       
        public override void Initialize()
        {
            // TODO: Add your initialization code here

            base.Initialize();
        }

        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {

            base.Update(gameTime);
        }
        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
        }
        public override Sprite Clone()
        {
            Sprite sp = new AIPad(Game1, new Vector2(780, 300), Vector2.Zero);
            return sp;
        }

    }
}